package entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author gxa
 * @since 2023-02-28
 */
@Getter
@Setter
@TableName("tb_promotion")
@ApiModel(value = "Promotion对象", description = "促销页面的表，促销活动")
public class Promotion implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("pr_id")
    private Integer prId;

    @ApiModelProperty("促销详情")
    @TableField("pr_title")
    private String prTitle;

    @ApiModelProperty("上架时间")
    @TableField("pr_start")
    private LocalDateTime prStart;

    @ApiModelProperty("下架时间")
    @TableField("pr_end")
    private LocalDateTime prEnd;

    @ApiModelProperty("预先上架时间")
    @TableField("pr_advance")
    private LocalDateTime prAdvance;

    @ApiModelProperty("是否启用 1：开启")
    @TableField("pr_state")
    private Integer prState;

    @ApiModelProperty("在数据处理的时候传入当前时间")
    @TableField("pr_create")
    private LocalDateTime prCreate;

    @ApiModelProperty("1：已删除")
    @TableField("deleted")
    private Integer deleted;


}
